import request from '@/utils/requestUtil.js'

const BASE_URL = '/user/admin-api/user'

export default {
  // 分页查询用户
  pageSelectUser(currentPage, pageSize, data) {
    return request({
      url: BASE_URL + `/page/${currentPage}/${pageSize}`,
      method: 'get',
      params: { ...data }
    })
  },

  // 根据用户ID修改用户
  updateUserById(data) {
    return request({
      url: BASE_URL,
      method: 'put',
      data
    })
  }
}
